const indexTpl = require('../views/index.html');
const navTpl=require('../views/nav.html');
const {Front}=require('../controllers/top-menu');
$('#app').html(indexTpl);
$("#footer").html(navTpl);
require('../controllers/cate-products');
var mySwiper = new Swiper('.swiper-container', {
  loop: true, // 循环模式选项
  autoplay: true,
  // 如果需要分页器
  pagination: {
    el: '.swiper-pagination',
  },
})
let top=$(".list").offset().height;
console.log(Front)
let front=new Front("#top-menu",top);
console.log(front)
front.init();



